home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7357 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1003 b 

  1. Path: airdmhor.gen.nz!not-for-mail
  2. From: gumboot@airdmhor.gen.nz (Simon Hosie)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: How to get a random string each time??
  5. Date: 26 Feb 1996 09:55:26 +1300
  6. Organization: Airdmhor : a couple of BBS's, a bunch of people, and a cat.
  7. Message-ID: <4gqibu$ckd@airdmhor.gen.nz>
  8. References: <4fh5od$qq0@news.nevada.edu> <4g4c5m$tlb@news.nevada.edu> <4gg4tj$s18@bcarh8ab.bnr.ca>
  9. NNTP-Posting-Host: airdmhor.gen.nz
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. In article <4g4c5m$tlb@news.nevada.edu>,
  13. Clapton Chan <chancl@nevada.edu> wrote:
  14. > ...
  15. >     for(i=0; i<10; i++) {
  16. > ...
  17. >        if...
  18. >           break;
  19. >    }
  20. > ...
  21. >    j = j%i;  /* this handles early program exit */
  22.  
  23. Henry Troup:
  24. > I know a couple of people who would jump up and down and yell about
  25. > access to a loop index variable outside of the loop.  And I know a
  26. > language that made it impossible.
  27.  
  28.   How would you (or they, the jumpers) suggest the programmer find out what
  29. the loop was up to when it terminated?
  30.